﻿

using System;
using System.Runtime.Serialization;
using XStudio.Core.Data;

namespace Core.Manage.Product
{
    /// <summary>
    /// 生资类型表实体
    /// </summary>
    [DataContract]
    [Table("QM_GoodsProductTypeTB")]
    public partial class GoodsProductTypeEntity : EntityObject
    {
        #region 内部变量

        private int _GoodsProductTypeID;
        private int _ProductTypeID;
        private string _Name;
        private DateTime _CreateDateTime;
        private int _CreateUserID;

        #endregion

        //属性

        #region GoodsProductTypeID
        /// <summary>
        /// GoodsProductTypeID
        /// </summary>
        [DataMember]
        [Column(IsUnique = true, IsPrimaryKey = true, Name = "GoodsProductTypeID", IsNull = false)]
        public int UID
        {
            get { return _GoodsProductTypeID; }
            set
            {
                _GoodsProductTypeID = value;
                ReportPropertyChanged("UID");
            }
        }
        #endregion

        #region 1-农资，2-农机，3-劳务，4-植保
        /// <summary>
        /// 1-农资，2-农机，3-劳务，4-植保
        /// </summary>
        [DataMember]
        [Column(Name = "ProductTypeID", IsNull = false)]
        public int ProductTypeID
        {
            get { return _ProductTypeID; }
            set
            {
                _ProductTypeID = value;
                ReportPropertyChanged("ProductTypeID");
            }
        }
        #endregion

        #region Name
        /// <summary>
        /// Name
        /// </summary>
        [DataMember]
        [Column(Name = "Name", IsNull = false)]
        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                ReportPropertyChanged("Name");
            }
        }
        #endregion

        #region CreateDateTime
        /// <summary>
        /// CreateDateTime
        /// </summary>
        [DataMember]
        [Column(Name = "CreateDateTime", IsNull = false)]
        public DateTime CreateDateTime
        {
            get { return _CreateDateTime; }
            set
            {
                _CreateDateTime = value;
                ReportPropertyChanged("CreateDateTime");
            }
        }
        #endregion

        #region CreateUserID
        /// <summary>
        /// CreateUserID
        /// </summary>
        [DataMember]
        [Column(Name = "CreateUserID", IsNull = false)]
        public int CreateUserID
        {
            get { return _CreateUserID; }
            set
            {
                _CreateUserID = value;
                ReportPropertyChanged("CreateUserID");
            }
        }
        #endregion

    }
}
